package ke01;

public class Kunde implements Comparable<Kunde> {

	private long id;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Kunde(long id) {
		setId(id);
	}

	@Override
	public int compareTo(Kunde o) {
		if (this.id < o.id) {
			return -1;
		} else if (this.id > o.id) {
			return 1;
		}
		return 0;
	}
}
